package com.javaclimb.accounting.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @version jdk1.8
 * @date 2022/12/27 11:46
 * @function:
 * 转账实体类
 */
public class Transfer {
    private Long offId;
    private Long offBefore;//起始电子账户id
    private Long offAfter;//终止电子账户id
    private BigDecimal offMoney;//转账金额
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date offTime;//转账时间
    private String afterUsername;//收款人姓名
    private String beforeUsername;//转账人姓名
    private BigDecimal beforeBalance;//转账人转账后余额
    private BigDecimal afterBalance;//收款人收款后余额

    public Long getOffId() {
        return offId;
    }

    public void setOffId(Long offId) {
        this.offId = offId;
    }

    public Long getOffBefore() {
        return offBefore;
    }

    public void setOffBefore(Long offBefore) {
        this.offBefore = offBefore;
    }

    public Long getOffAfter() {
        return offAfter;
    }

    public void setOffAfter(Long offAfter) {
        this.offAfter = offAfter;
    }

    public BigDecimal getOffMoney() {
        return offMoney;
    }

    public void setOffMoney(BigDecimal offMoney) {
        this.offMoney = offMoney;
    }

    public Date getOffTime() {
        return offTime;
    }

    public void setOffTime(Date offTime) {
        this.offTime = offTime;
    }

    public String getAfterUsername() {
        return afterUsername;
    }

    public void setAfterUsername(String afterUsername) {
        this.afterUsername = afterUsername;
    }

    public String getBeforeUsername() {
        return beforeUsername;
    }

    public void setBeforeUsername(String beforeUsername) {
        this.beforeUsername = beforeUsername;
    }

    public BigDecimal getBeforeBalance() {
        return beforeBalance;
    }

    public void setBeforeBalance(BigDecimal beforeBalance) {
        this.beforeBalance = beforeBalance;
    }

    public BigDecimal getAfterBalance() {
        return afterBalance;
    }

    public void setAfterBalance(BigDecimal afterBalance) {
        this.afterBalance = afterBalance;
    }

    public Transfer(Long offBefore, Long offAfter, BigDecimal offMoney, String afterUsername, String beforeUsername, BigDecimal beforeBalance, BigDecimal afterBalance) {
        this.offBefore = offBefore;
        this.offAfter = offAfter;
        this.offMoney = offMoney;
        this.afterUsername = afterUsername;
        this.beforeUsername = beforeUsername;
        this.beforeBalance = beforeBalance;
        this.afterBalance = afterBalance;
    }
}
